<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="hexo,博客,hexo3,blog,github pages,免费个人博客" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.0" />






<meta name="description" content="既然是第一篇就说说hexo在搭建的时候的一些问题吧：（感谢hexo很完善的官方文档） 环境node和git是最基本的了，mac上通过brew安装也毫无难度，这里注意一下的就是node的版本，我用了nvm做版本管理，刚开始用node的v6.2安装了hexo，会报错一大篇，网上查了一下，说是无关紧要的错误但是比较烦心的是每次执行命令的时候这些错误都会报出来，错误类似于：1&amp;#123; [Error:">
<meta name="keywords" content="hexo,博客,hexo3,blog,github pages,免费个人博客">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo搭建">
<meta property="og:url" content="http://lanbos.win/2014/11/07/hexo/hexo_newBegining/index.html">
<meta property="og:site_name" content="lanbos&#39;blog">
<meta property="og:description" content="既然是第一篇就说说hexo在搭建的时候的一些问题吧：（感谢hexo很完善的官方文档） 环境node和git是最基本的了，mac上通过brew安装也毫无难度，这里注意一下的就是node的版本，我用了nvm做版本管理，刚开始用node的v6.2安装了hexo，会报错一大篇，网上查了一下，说是无关紧要的错误但是比较烦心的是每次执行命令的时候这些错误都会报出来，错误类似于：1&amp;#123; [Error:">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://i4.buimg.com/4851/067092fa251ae104.jpg">
<meta property="og:updated_time" content="2017-07-24T03:21:00.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hexo搭建">
<meta name="twitter:description" content="既然是第一篇就说说hexo在搭建的时候的一些问题吧：（感谢hexo很完善的官方文档） 环境node和git是最基本的了，mac上通过brew安装也毫无难度，这里注意一下的就是node的版本，我用了nvm做版本管理，刚开始用node的v6.2安装了hexo，会报错一大篇，网上查了一下，说是无关紧要的错误但是比较烦心的是每次执行命令的时候这些错误都会报出来，错误类似于：1&amp;#123; [Error:">
<meta name="twitter:image" content="http://i4.buimg.com/4851/067092fa251ae104.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://lanbos.win/2014/11/07/hexo/hexo_newBegining/"/>





  <title> hexo搭建 | lanbos'blog </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">lanbos'blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">这个人假装很懒，什么都没有留下</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
  <link itemprop="mainEntityOfPage" href="http://lanbos.win/2014/11/07/hexo/hexo_newBegining/">

  <span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="lanbos">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="https://ws1.sinaimg.cn/large/5c9d16d6gw1fbesf3zrhej209p09ftai.jpg">
  </span>

  <span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="lanbos'blog">
    <span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
      <img style="display:none;" itemprop="url image" alt="lanbos'blog" src="">
    </span>
  </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                hexo搭建
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2014-11-07T08:55:29+08:00">
                2014-11-07
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/coder/" itemprop="url" rel="index">
                    <span itemprop="name">码畜相关</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          

          
          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>既然是第一篇就说说hexo在搭建的时候的一些问题吧：<br>（感谢hexo很完善的<a href="">官方文档</a>）</p>
<h2 id="环境"><a href="#环境" class="headerlink" title="环境"></a>环境</h2><p>node和git是最基本的了，mac上通过brew安装也毫无难度，这里注意一下的就是node的版本，我用<br>了nvm做版本管理，刚开始用node的v6.2安装了hexo，会报错一大篇，网上查了一下，说是无关紧要<br>的错误但是比较烦心的是每次执行命令的时候这些错误都会报出来，错误类似于：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&#123; [Error: Cannot find module &apos;./build/Release/DTraceProviderBindings&apos;] code: &apos;MODULE_NOT_FOUND&apos; &#125;</div></pre></td></tr></table></figure></p>
<p>网上找到用<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ npm install hexo --no-optional</div></pre></td></tr></table></figure></p>
<p>安装可以解决，但是我最终还是选择降级回了node的 v0.12版本<br><a id="more"></a></p>
<h2 id="hexo安装"><a href="#hexo安装" class="headerlink" title="hexo安装"></a>hexo安装</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">npm install hexo-cli -g --save</div><div class="line">cd blog</div><div class="line">hexo init</div><div class="line"><span class="comment">//在目录结构下会自动再安装一次hexo</span></div><div class="line">npm install hexo-deployer-git --save</div></pre></td></tr></table></figure>
<p>这些都没有什么问题。<br>hexo-deployer-git 这个包是一会儿用来自动部署到github pages用的<br><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">hexo g</div><div class="line"><span class="comment">//静态化网页</span></div><div class="line">hexo s -p <span class="number">5000</span></div><div class="line"><span class="comment">//在5000接口监听网页</span></div></pre></td></tr></table></figure></p>
<p>这时就可以在localhost:5000上看到hellow world 的欢迎页了</p>
<h2 id="配置文件"><a href="#配置文件" class="headerlink" title="配置文件"></a>配置文件</h2><p>在根目录下的_config.yml中可以配置绝大多数工能<br>官方文档中已经非常详细的讲解了文档中的功能含义（国人开发的就是好。。。）这里摘录一下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div></pre></td><td class="code"><pre><div class="line">网站</div><div class="line">参数	描述</div><div class="line">title	网站标题</div><div class="line">subtitle	网站副标题</div><div class="line">description	网站描述</div><div class="line">author	您的名字</div><div class="line">language	网站使用的语言</div><div class="line">timezone	网站时区。Hexo 默认使用您电脑的时区。时区列表。比如说：America/New_York, Japan, 和 UTC 。</div><div class="line">网址</div><div class="line">参数	描述	默认值</div><div class="line">url	网址	</div><div class="line">root	网站根目录	</div><div class="line">permalink	文章的 永久链接 格式	:year/:month/:day/:title/</div><div class="line">permalink_default	永久链接中各部分的默认值	</div><div class="line">如果您的网站存放在子目录中，例如 http://yoursite.com/blog，则请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。</div><div class="line">目录</div><div class="line">参数	描述	默认值</div><div class="line">source_dir	资源文件夹，这个文件夹用来存放内容。	source</div><div class="line">public_dir	公共文件夹，这个文件夹用于存放生成的站点文件。	public</div><div class="line">tag_dir	标签文件夹	tags</div><div class="line">archive_dir	归档文件夹	archives</div><div class="line">category_dir	分类文件夹	categories</div><div class="line">code_dir	Include code 文件夹	`downloads/code</div><div class="line">i18n_dir	国际化（i18n）文件夹	:lang</div><div class="line">skip_render	跳过指定文件的渲染，您可使用 glob 表达式来匹配路径。	</div><div class="line">文章</div><div class="line">参数	描述	默认值</div><div class="line">new_post_name	新文章的文件名称	:title.md</div><div class="line">default_layout	预设布局	post</div><div class="line">auto_spacing	在中文和英文之间加入空格	false</div><div class="line">titlecase	把标题转换为 title case	false</div><div class="line">external_link	在新标签中打开链接	true</div><div class="line">filename_case	把文件名称转换为 (1) 小写或 (2) 大写	0</div><div class="line">render_drafts	显示草稿	false</div><div class="line">post_asset_folder	启动 Asset 文件夹	false</div><div class="line">relative_link	把链接改为与根目录的相对位址	false</div><div class="line">future	显示未来的文章	true</div><div class="line">highlight	代码块的设置	</div><div class="line">分类 &amp; 标签</div><div class="line">参数	描述	默认值</div><div class="line">default_category	默认分类	uncategorized</div><div class="line">category_map	分类别名	</div><div class="line">tag_map	标签别名	</div><div class="line">日期 / 时间格式</div><div class="line">Hexo 使用 Moment.js 来解析和显示时间。</div><div class="line"></div><div class="line">参数	描述	默认值</div><div class="line">date_format	日期格式	MMM D YYYY</div><div class="line">time_format	时间格式	H:mm:ss</div><div class="line">分页</div><div class="line">参数	描述	默认值</div><div class="line">per_page	每页显示的文章量 (0 = 关闭分页功能)	10</div><div class="line">pagination_dir	分页目录	page</div><div class="line">扩展</div><div class="line">参数	描述</div><div class="line">theme	当前主题名称。值为false时禁用主题</div><div class="line">deploy	部署部分的设置</div></pre></td></tr></table></figure></p>
<h3 id="吐槽yaml"><a href="#吐槽yaml" class="headerlink" title="吐槽yaml"></a>吐槽yaml</h3><p>之前就知道yaml是个神奇的东西，好多情况下用来写配置文件，但是这个格式的语法要求很严格，<br>特别注意在：后需要一个空格不能是tab，最好借助编辑器的语法检测来进行编辑否则会报各种奇<br>葩错误类似：<br><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">TypeError</span>: Cannot read property <span class="string">'replace'</span> <span class="keyword">of</span> <span class="literal">null</span></div><div class="line">    at /Applications/XAMPP/xamppfiles/htdocs/lanbos.github.io/node_modules/hexo/lib/hexo/load_config.js:<span class="number">34</span>:<span class="number">30</span></div><div class="line">    at tryCatcher (<span class="regexp">/Applications/</span>XAMPP/xamppfiles/htdocs/lanbos.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:<span class="number">16</span>:<span class="number">23</span>)</div><div class="line">    at <span class="built_in">Promise</span>._settlePromiseFromHandler (<span class="regexp">/Applications/</span>XAMPP/xamppfiles/htdocs/lanbos.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:<span class="number">509</span>:<span class="number">31</span>)</div></pre></td></tr></table></figure></p>
<h3 id="Deployment配置"><a href="#Deployment配置" class="headerlink" title="Deployment配置"></a>Deployment配置</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">deploy:</div><div class="line">  type: git</div><div class="line">  repo: git@github.com:yourname/yourname.github.io.git</div><div class="line">  branch: master</div></pre></td></tr></table></figure>
<p>在_config.yml中配置最后的Deployment选项并下载之前说过的hexo-deployer-git插件就可以直接通过<br>命令<code>hexo d -g</code>生成静态文件并提交到github上</p>
<h2 id="写新文章"><a href="#写新文章" class="headerlink" title="写新文章"></a>写新文章</h2><p>官方文档中推荐使用new命令来新建新文章，我的做法是直接在source/_postts文件夹下新建markdown<br>文件来增加新文章，文章的开头需要添加一些yaml命令<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">title: ##文章标题</div><div class="line">date: ##时间，格式为 YYYY-MM-DD HH:mm:ss</div><div class="line">categories: ##分类</div><div class="line">tags: ##标签，多标签格式为 [tag1,tag2,...]</div><div class="line">keywords: ##文章关键词，多关键词格式为 keyword1,keywords2,...</div><div class="line">description: ##文章描述</div><div class="line">toc: true  ##在此处设定是否开启目录，需要主题支持。</div><div class="line">---</div></pre></td></tr></table></figure></p>
<h3 id="图片插入"><a href="#图片插入" class="headerlink" title="图片插入"></a>图片插入</h3><p>可以采用官方提供的两种方法：<br>1.最简单的方法就是将图片放在 source/images 文件夹中，然后通过markdown的语法：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">![](/images/image.jpg)</div></pre></td></tr></table></figure></p>
<p>来访问图片。<br>2.通过资源引用方式，先在_config.yml中将post_asset_folder 设置为true，之后引用官方文档原话：<br>当资源文件管理功能打开后，Hexo将会在你每一次通过 hexo new [layout] <title> 命令创建新文章时自<br>动创建一个文件夹。这个资源文件夹将会有与这个 markdown 文件一样的名字。将所有与你的文章有<br>关的资源放在这个关联文件夹中之后，你可以通过相对路径来引用它们，这样你就得到了一个更简单<br>而且方便得多的工作流。<br>另外可以用最传统的图床方法，也比较好，网上有很多用七牛云做图床的教程，我是在google上搜到<br>的一个免费图床<a href="http://tuchuang.org/" target="_blank" rel="external">http://tuchuang.org/</a>。chrome插件商店中的微博图床也是个很<br>好的选择。网络上提供的图床可能不稳定，所以最好把关键的图片使用官方的方法引入，不重要的图<br>片采用图床的方式。</title></p>
<h2 id="更改域名"><a href="#更改域名" class="headerlink" title="更改域名"></a>更改域名</h2><p>在source文件夹下新建一个名为CNAME的文件（注意：不添加任何后缀），文件中写入你的域名<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">lanbos.win</div></pre></td></tr></table></figure></p>
<h3 id="域名购买及DNS解析"><a href="#域名购买及DNS解析" class="headerlink" title="域名购买及DNS解析"></a>域名购买及DNS解析</h3><p>在阿里云购买的域名。。。会有备案等一系列流程，就不在这里赘述了，跟着阿里云的提示步骤走<br>不会出太大的问题，一些小众的后缀域名会很便宜，如.win,.xyz,.top等。通过：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">ping yourname.github.io</div></pre></td></tr></table></figure></p>
<p>来获得你github pages的IP地址<br>在阿里云找到域名相关选项：<br><img src="http://i4.buimg.com/4851/067092fa251ae104.jpg" alt=""><br>点击后把之前获得的ip填进去，大约一分钟后就可以把你购买的域名关联到你的github pages上，在<br>浏览器输入你的域名尝试访问一下，就完成了域名绑定。</p>
<h2 id="后续"><a href="#后续" class="headerlink" title="后续"></a>后续</h2><p>hexo基础搭建博客的方式就写到这里，随后会尝试在主题方便做一些更改和增加</p>
<h2 id="参考文章"><a href="#参考文章" class="headerlink" title="参考文章"></a>参考文章</h2><p><a href="https://xuanwo.org/2015/03/26/hexo-intor/" target="_blank" rel="external">史上最详细的Hexo博客搭建图文教程</a><br><a href="https://xuanwo.org/2014/08/14/hexo-usual-problem/" target="_blank" rel="external">Hexo常见问题解决方案</a><br><a href="http://www.jianshu.com/p/fd878edb95e7" target="_blank" rel="external">MAC 上 github + hexo 搭建博客教程</a></p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>


    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/hexo/" rel="tag"># hexo</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2015/01/10/tools/sublime_base01/" rel="prev" title="sublime编辑器的使用（一）插件安装">
                sublime编辑器的使用（一）插件安装 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>
  <!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=2123221"></script>
<!-- UY END -->



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="https://ws1.sinaimg.cn/large/5c9d16d6gw1fbesf3zrhej209p09ftai.jpg"
               alt="lanbos" />
          <p class="site-author-name" itemprop="name">lanbos</p>
          <p class="site-description motion-element" itemprop="description">这个人假装很懒，什么都没有留下</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">24</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">分类</span>
              
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#环境"><span class="nav-number">1.</span> <span class="nav-text">环境</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#hexo安装"><span class="nav-number">2.</span> <span class="nav-text">hexo安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置文件"><span class="nav-number">3.</span> <span class="nav-text">配置文件</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#吐槽yaml"><span class="nav-number">3.1.</span> <span class="nav-text">吐槽yaml</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Deployment配置"><span class="nav-number">3.2.</span> <span class="nav-text">Deployment配置</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#写新文章"><span class="nav-number">4.</span> <span class="nav-text">写新文章</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#图片插入"><span class="nav-number">4.1.</span> <span class="nav-text">图片插入</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#更改域名"><span class="nav-number">5.</span> <span class="nav-text">更改域名</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#域名购买及DNS解析"><span class="nav-number">5.1.</span> <span class="nav-text">域名购买及DNS解析</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#后续"><span class="nav-number">6.</span> <span class="nav-text">后续</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#参考文章"><span class="nav-number">7.</span> <span class="nav-text">参考文章</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">lanbos</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>


        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  



  




	




  
  

  

  

  

  


</body>
</html>
